﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KPIS.GERP.GIMS.MODEL
{
    [Serializable]
    public class ReceiveItemInfo : RecordInfo
    {
        private Nullable<int> icm_rc_item_seq;
        private M_IcmReceiveObject icm_receive_seq;// 'รหัสการรับเข้า',
        private DeliveryNoteItemInfo icm_dn_item_seq;// DEFAULT NULL,
        private string lot_number;
        private ResourceMasterItemInfo icm_res_item_seq; //'รหัสของที่รับเข้า',
        private MasterDepreciationTypeInfo icm_dp_type_seq; //ประเภทค่าเสื่อม
        private string serial_number;
        private Nullable<int> upper_icm_rc_item_seq;
        private Nullable<DateTime> date_expired;
        private string auto_consume; // 'เบิกจ่ายอัตโนมัติ 1=yes 0 =no',
        private string fix_pattern; // 'ใช้รูปแบบของหน่วยงานหรือไม่ 1 = yes 0 = กำหนดเอง',
        private HrmJobSiteInfo to_job_site_seq;
        private string is_asset_below; //'เป็นครุภัณฑ์ต่ำกว่าเกณฑ์หรือไม่ 1=yes 0 = no',
        private string descr;
        private int qty;
        private double price;
        private string accessary; // 'สิ่งที่มาด้วยกับวัสดุ',
        private string picture_path;
        public string remark;

        public ReceiveItemInfo()
        {

        }

        public Nullable<int> Seq
        {
            set { icm_rc_item_seq = value; }
            get { return icm_rc_item_seq; }
        }

        public M_IcmReceiveObject ReceiveSeq
        {
            set { icm_receive_seq = value; }
            get { return icm_receive_seq; }
        }
        public DeliveryNoteItemInfo DeliveryNoteItem
        {
            set { icm_dn_item_seq = value; }
            get { return icm_dn_item_seq; }
        }
        public string LotNumber
        {
            set { lot_number = value; }
            get { return lot_number; }
        }
        public ResourceMasterItemInfo ResourceItemSeq
        {
            set { icm_res_item_seq = value; }
            get { return icm_res_item_seq; }
        }
        public MasterDepreciationTypeInfo DepreciationType
        {
            set { icm_dp_type_seq = value; }
            get { return icm_dp_type_seq; }
        }
        public string SerialNumber
        {
            set { serial_number = value; }
            get { return serial_number; }
        }
        public Nullable<int> UpperItemSeq
        {
            set { upper_icm_rc_item_seq = value; }
            get { return upper_icm_rc_item_seq; }
        }
        public Nullable<DateTime> DateExpired
        {
            set { date_expired = value; }
            get { return date_expired; }
        }
        public string AutoConsume
        {
            set { auto_consume = value; }
            get { return auto_consume; }
        }
        public string FixPattern
        {
            set { fix_pattern = value; }
            get { return fix_pattern; }
        }
        public HrmJobSiteInfo JobSiteSeq
        {
            set { to_job_site_seq = value; }
            get { return to_job_site_seq; }
        }
        public string IsAssetBelow
        {
            set { is_asset_below = value; }
            get { return is_asset_below; }
        }
        public string Description
        {
            set { descr = value; }
            get { return descr; }
        }
        public int Quantity
        {
            set { qty = value; }
            get { return qty; }
        }
        public double UnitPrice
        {
            set { price = value; }
            get { return price; }
        }
        public string Accessary
        {
            set { accessary = value; }
            get { return accessary; }
        }
        public string PicturePath
        {
            set { picture_path = value; }
            get { return picture_path; }
        }
        public string Remark
        {
            set { remark = value; }
            get { return remark; }
        }

    }
}
